package com.auction.service;

import com.auction.common.dao.MyBaseService;
import com.auction.entity.TransactionLog;
import com.auction.entity.Wallet;

import java.util.Map;

public interface WalletService extends MyBaseService<Wallet> {

    /**
     * 更新账户金额
     * @param transactionLog
     * @return
     */
    int updateWallet(TransactionLog transactionLog);

    /**
     * 根据id查找账户信息
     * @param user_id
     * @return
     */
    Map getWalletByUserId(int user_id);
}
